<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<title><#if op??> <#if op=="reg">用户注册<#elseif op=="login">用户登录<#elseif op=="forget">忘记密码</#if><#else>用户登录</#if></title>
	<meta charset="utf-8" />
	<meta name="author" content="m.jd.com">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">

	<link rel="stylesheet" type="text/css" href="/css/base.css" charset="UTF-8" />
	<link rel="stylesheet" type="text/css" href="/css/mine.css" />
</head>

<body class="background-white">
	<a href="/index.html">
	<div class="login-logo">
		<img src="/imgs/logo-yjf-145.png" class="logo">
		<div class="header-edit-tips"><#if op??> <#if op=="reg">用户注册<#elseif op=="login">用户登录<#elseif op=="forget">忘记密码</#if><#else>用户登录</#if></div>
	</div>
	</a>
	
	<form action="/user/<#if op??><#if op=="reg">reg<#elseif op=="forget">forgetPwd<#elseif op=="login">login</#if><#else>login</#if>.html" method="POST" class="login-content" op="${(op)!"login"}">
		<div><input type="text" name="mobile" placeholder="您的手机号码" class="login-input" exist="true" value="${(mobile)!""}" /></div>
		<#if op?? && (op=="reg" || op == "forget")>
		<div>
			<input type="text" name="vc" placeholder="验证码" class="login-input" style="width:50%" value="${(vc)!""}" />
			<input type="button" id="sendValidateCodeBtn" value="获取验证码" class="login-btn gray-color" style="width:45%"/>
		</div>
		</#if>
		<div><input type="password" name="password" placeholder="您的登录密码" class="login-input" value="${(password)!""}"/></div>
		<#if op?? && (op=="reg" || op == "forget")>
		<div><input type="password" id="repwd" placeholder="重复登录密码" class="login-input" value="${(password)!""}"/></div>
		<#if op?? && op=="reg">
		<div><input type="<#if promoCode?? && promoCode?length gt 0>hidden<#else>text</#if>" id="promoCode" name="promoCode" placeholder="请输入推广码（可选）" class="login-input" value="${(promoCode)!""}" /></div>
		</#if>
		<#else>
		<div class="other-op-wapper">
			<div class="remenber-me"><input type="checkbox" name="remeberme"/>记住我</div>
			<div class="forget-pwd"><a href="/forgetPwd.html">忘记密码？</a></div>
		</div>
		</#if>
		<div class="login-error-msg">${(msg)!""}</div>
		<#if op?? && (op=="reg" || op == "forget")>
		<div class="login-btn yellow-color add_cart" id="regBtn" ><#if op=="reg">注册<#elseif op=="forget">重置密码</#if></div>
		<div class="login-btn gray-color add_cart" id="loginBtn" >登录</div>
		<#else>
		<div class="login-btn yellow-color add_cart" id="loginBtn">登录</div>
		<div class="login-btn gray-color add_cart" id="regBtn">注册</div>
		</#if>
	</form>
	<script src="/js/zepto/zepto1.2.0.min.js"></script>
	<script type="text/javascript" src="/js/biz/login.js"></script>
</body>
</html>